package com.baizhi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
@Data
public class Article implements Serializable {
    @Excel(name="文章编号")
    private int articleId;
    @Excel(name="文章名字")
    private String articleName;
    @Excel(name="文章图片")
    private String articleImage;
    @Excel(name="文章内容")
    private String articleContent;
    @Excel(name="上传时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date articleDate;
    @Excel(name="对应上师",replace = {"大宝法王_1","睡梦罗汉_2","鸡鸡罗汉_3","金曲奖_4"})
    private Guru guru;
}
